﻿using UnityEngine;
using System.Collections;

public class Weapon : MonoBehaviour
{
    // Use this for initialization
    void Start()
    {
        gameObject.GetComponent<Animator>().SetInteger("iAnimID", transform.parent.GetComponent<Animator>().GetInteger("iAnimID"));
        //gameObject.GetComponent<Animator>().SetInteger("iWeaponType", transform.parent.GetComponent<Animator>().GetInteger("iWeaponType"));
    }

    // Update is called once per frame
    void Update()
    {
        gameObject.GetComponent<Animator>().SetInteger("iAnimID", transform.parent.GetComponent<Animator>().GetInteger("iAnimID"));
        //gameObject.GetComponent<Animator>().SetInteger("iWeaponType", transform.parent.GetComponent<Animator>().GetInteger("iWeaponType"));
    }
}
